package com.exam.domain;

import java.util.Date;

/**
 * Created by jly on 2016/12/20.
 */
public class User {
    /*用户id*/
    private Long userId;
    private Long user_id;
    private String user_name;

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    /*用户名*/
    private String userName;

    /*用户密码*/
    private String userPassword;

    /*用户创建日期*/
    private Date createTime;

    /*用户所属角色*/
    private Role role;

    //密码盐
  //  private String salt;


    public User() {
    }

    public User(Long userId, String userName, String userPassword, Date createTime, Role role) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.createTime = createTime;
        this.role = role;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }
}
